package cn.edu.zzuli.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class SystemController extends AbstractController {

	/**
	 * 系统数据页面
	 */
	@RequestMapping(value = "/system/bak", method = RequestMethod.GET)
	public String systemUI() {
		return "/system/bak";
	}
	
	@RequestMapping(value = "/system/databak", method = RequestMethod.GET)
	public String systemBak() {
		
		this.getSystemDao().systemBak();
		return "redirect:/system/bak.html";
	}
	
}
